#include <iostream>
#include <cmath>
using namespace std;
const float PI=3.141593;
const int fenceprice=35;
const int pathprice=20;
class circle{
	public:
		circle(int r);
		float c();
		float s();
	private:
		int rr;
};
circle::circle(int r):rr(r)
{}
float circle::c(){
	return 2*PI*rr;	
}
float circle::s(){
	return PI*pow(rr,2);
}
int main(){
	int rr;
	cout<<"please put the rr"<<endl;
	cin>>rr;
	circle pool(rr);
	circle poolrim(rr+3);
	float fencecost=poolrim.c()*fenceprice;
	cout<<fencecost<<endl;
	float pathcost=(poolrim.s()-pool.s())*pathprice;
	cout<<pathcost<<endl;
	return 0;
	
}
